<template>
    <el-timeline>
        <!-- <el-timeline-item v-for="item in data" :key="item.id" :timestamp="item.date" placement="top">
            {{ `${item.name} ${item.record}` }}
        </el-timeline-item> -->
        <el-timeline-item v-for="item in props.data" :key="item.id" :timestamp="item.operationDate">
            {{ `${item.operationPersonName} ${props.operatorType.filter((record:any)=>record.value == item.operationType)[0].label}` }}
        </el-timeline-item>
    </el-timeline>
</template>

<script setup lang="ts">
const props = defineProps(['data','operatorType']);

</script>

<style scoped>

</style>